Optimal. Leaf size=220 \[ \frac {\cot ^{\frac {3}{2}}(c+d x)}{2 d (a \cot (c+d x)+i a)}-\frac {5 \sqrt {\cot (c+d x)}}{2 a d}-\frac {\left (\frac {5}{8}-\frac {3 i}{8}\right ) \log \left (\cot (c+d x)-\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{\sqrt {2} a d}+\frac {\left (\frac {5}{8}-\frac {3 i}{8}\right ) \log \left (\cot (c+d x)+\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{\sqrt {2} a d}-\frac {\left (\frac {5}{4}+\frac {3 i}{4}\right ) \tan ^{-1}\left (1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} a d}+\frac {\left (\frac {5}{4}+\frac {3 i}{4}\right ) \tan ^{-1}\left (\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{\sqrt {2} a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.24, antiderivative size = 220, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 10, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {3673, 3550, 3528, 3534, 1168, 1162, 617, 204, 1165, 628} \[ \frac {\cot ^{\frac {3}{2}}(c+d x)}{2 d (a \cot (c+d x)+i a)}-\frac {5 \sqrt {\cot (c+d x)}}{2 a d}-\frac {\left (\frac {5}{8}-\frac {3 i}{8}\right ) \log \left (\cot (c+d x)-\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{\sqrt {2} a d}+\frac {\left (\frac {5}{8}-\frac {3 i}{8}\right ) \log \left (\cot (c+d x)+\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{\sqrt {2} a d}-\frac {\left (\frac {5}{4}+\frac {3 i}{4}\right ) \tan ^{-1}\left (1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} a d}+\frac {\left (\frac {5}{4}+\frac {3 i}{4}\right ) \tan ^{-1}\left (\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{\sqrt {2} a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 617
Rule 628
Rule 1162
Rule 1165
Rule 1168
Rule 3528
Rule 3534
Rule 3550
Rule 3673
Rubi steps
\begin {align*} \int \frac {\cot ^{\frac {3}{2}}(c+d x)}{a+i a \tan (c+d x)} \, dx &=\int \frac {\cot ^{\frac {5}{2}}(c+d x)}{i a+a \cot (c+d x)} \, dx\\ &=\frac {\cot ^{\frac {3}{2}}(c+d x)}{2 d (i a+a \cot (c+d x))}-\frac {\int \sqrt {\cot (c+d x)} \left (\frac {3 i a}{2}-\frac {5}{2} a \cot (c+d x)\right ) \, dx}{2 a^2}\\ &=-\frac {5 \sqrt {\cot (c+d x)}}{2 a d}+\frac {\cot ^{\frac {3}{2}}(c+d x)}{2 d (i a+a \cot (c+d x))}-\frac {\int \frac {\frac {5 a}{2}+\frac {3}{2} i a \cot (c+d x)}{\sqrt {\cot (c+d x)}} \, dx}{2 a^2}\\ &=-\frac {5 \sqrt {\cot (c+d x)}}{2 a d}+\frac {\cot ^{\frac {3}{2}}(c+d x)}{2 d (i a+a \cot (c+d x))}-\frac {\operatorname {Subst}\left (\int \frac {-\frac {5 a}{2}-\frac {3}{2} i a x^2}{1+x^4} \, dx,x,\sqrt {\cot (c+d x)}\right )}{a^2 d}\\ &=-\frac {5 \sqrt {\cot (c+d x)}}{2 a d}+\frac {\cot ^{\frac {3}{2}}(c+d x)}{2 d (i a+a \cot (c+d x))}--\frac {\left (\frac {5}{4}+\frac {3 i}{4}\right ) \operatorname {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\sqrt {\cot (c+d x)}\right )}{a d}--\frac {\left (\frac {5}{4}-\frac {3 i}{4}\right ) \operatorname {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\sqrt {\cot (c+d x)}\right )}{a d}\\ &=-\frac {5 \sqrt {\cot (c+d x)}}{2 a d}+\frac {\cot ^{\frac {3}{2}}(c+d x)}{2 d (i a+a \cot (c+d x))}--\frac {\left (\frac {5}{8}+\frac {3 i}{8}\right ) \operatorname {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{a d}--\frac {\left (\frac {5}{8}+\frac {3 i}{8}\right ) \operatorname {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{a d}-\frac {\left (\frac {5}{8}-\frac {3 i}{8}\right ) \operatorname {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{\sqrt {2} a d}-\frac {\left (\frac {5}{8}-\frac {3 i}{8}\right ) \operatorname {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{\sqrt {2} a d}\\ &=-\frac {5 \sqrt {\cot (c+d x)}}{2 a d}+\frac {\cot ^{\frac {3}{2}}(c+d x)}{2 d (i a+a \cot (c+d x))}-\frac {\left (\frac {5}{8}-\frac {3 i}{8}\right ) \log \left (1-\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{\sqrt {2} a d}+\frac {\left (\frac {5}{8}-\frac {3 i}{8}\right ) \log \left (1+\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{\sqrt {2} a d}--\frac {\left (\frac {5}{4}+\frac {3 i}{4}\right ) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} a d}-\frac {\left (\frac {5}{4}+\frac {3 i}{4}\right ) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} a d}\\ &=-\frac {\left (\frac {5}{4}+\frac {3 i}{4}\right ) \tan ^{-1}\left (1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} a d}+\frac {\left (\frac {5}{4}+\frac {3 i}{4}\right ) \tan ^{-1}\left (1+\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} a d}-\frac {5 \sqrt {\cot (c+d x)}}{2 a d}+\frac {\cot ^{\frac {3}{2}}(c+d x)}{2 d (i a+a \cot (c+d x))}-\frac {\left (\frac {5}{8}-\frac {3 i}{8}\right ) \log \left (1-\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{\sqrt {2} a d}+\frac {\left (\frac {5}{8}-\frac {3 i}{8}\right ) \log \left (1+\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{\sqrt {2} a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.07, size = 213, normalized size = 0.97 \[ -\frac {\sqrt {\cot (c+d x)} \csc (c+d x) \sec (c+d x) \left (10 i \sin (2 (c+d x))+8 \cos (2 (c+d x))-(5+3 i) \sqrt {\sin (2 (c+d x))} \sin ^{-1}(\cos (c+d x)-\sin (c+d x)) (\cos (c+d x)+i \sin (c+d x))-(5-3 i) \sqrt {\sin (2 (c+d x))} \cos (c+d x) \log \left (\sin (c+d x)+\sqrt {\sin (2 (c+d x))}+\cos (c+d x)\right )-(3+5 i) \sin (c+d x) \sqrt {\sin (2 (c+d x))} \log \left (\sin (c+d x)+\sqrt {\sin (2 (c+d x))}+\cos (c+d x)\right )+8\right )}{8 a d (\cot (c+d x)+i)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.12, size = 469, normalized size = 2.13 \[ \frac {{\left (a d \sqrt {\frac {i}{4 \, a^{2} d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (2 \, {\left (2 \, {\left (a d e^{\left (2 i \, d x + 2 i \, c\right )} - a d\right )} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}} \sqrt {\frac {i}{4 \, a^{2} d^{2}}} + i \, e^{\left (2 i \, d x + 2 i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}\right ) - a d \sqrt {\frac {i}{4 \, a^{2} d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (-2 \, {\left (2 \, {\left (a d e^{\left (2 i \, d x + 2 i \, c\right )} - a d\right )} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}} \sqrt {\frac {i}{4 \, a^{2} d^{2}}} - i \, e^{\left (2 i \, d x + 2 i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}\right ) + a d \sqrt {-\frac {4 i}{a^{2} d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (\frac {{\left ({\left (a d e^{\left (2 i \, d x + 2 i \, c\right )} - a d\right )} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}} \sqrt {-\frac {4 i}{a^{2} d^{2}}} + 2 i\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{a d}\right ) - a d \sqrt {-\frac {4 i}{a^{2} d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (-\frac {{\left ({\left (a d e^{\left (2 i \, d x + 2 i \, c\right )} - a d\right )} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}} \sqrt {-\frac {4 i}{a^{2} d^{2}}} - 2 i\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{a d}\right ) - \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}} {\left (9 \, e^{\left (2 i \, d x + 2 i \, c\right )} - 1\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{4 \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cot \left (d x + c\right )^{\frac {3}{2}}}{i \, a \tan \left (d x + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 1.12, size = 1205, normalized size = 5.48 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\mathrm {cot}\left (c+d\,x\right )}^{3/2}}{a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ - \frac {i \int \frac {\cot ^{\frac {3}{2}}{\left (c + d x \right )}}{\tan {\left (c + d x \right )} - i}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________